from tkinter import*
print("Введите 3 числа")

c=[0,0,10,0,10,10,20,10,20,20,10,20,10,30,0,30,0,0]

root=Tk()
root.title("ИТ Марафон")
root.geometry("500x500")


canvas=Canvas(bg="white", width = 500, height = 500)
canvas.pack(anchor=CENTER, expand=1)
if N==0 and X>=0 and X<=500 and Y>=0 and Y<=500:
    pass
else:
        if N>0 and 0*N+X>=0 and 0*N+Y>=0 and 20*N+X<=500 and 20*N+Y<=500:
            pass
        else:
            if N<0 and 20*N+X>=0 and 20*N+Y>=0 and 0*N+X<=500 and 0*N+Y<=500:
                pass
print ("Развер фигуры превышает максимальный размер поля")
exit()
canvas.create_polygon(c[0] *N+X, c[1] *N+Y,
                      c[2] *N+X, c[3] *N+Y,
                      c[4] *N+X, c[5] *N+Y,
                      c[6] *N+X, c[7] *N+Y,
                      c[8] *N+X, c[9] *N+Y)


root.nainloop()
